Skip to content

fix(@angular/cli): respect registry in RC when running update through yarn#24209

Merged
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:yarn-registry-update
Nov 11, 2022
Merged

fix(@angular/cli): respect registry in RC when running update through yarn#24209
alan-agius4 merged 1 commit intoangular:mainfrom
alan-agius4:yarn-registry-update

Conversation

@alan-agius4
Copy link
Copy Markdown
Collaborator

This commit fixes an issue where when ng update was ran using yarn (yarn ng update) the registry was always being overridden to https://registry.yarnpkg.com.

This is because yarn will set the npm_config_registry env variable to https://registry.yarnpkg.com even when an RC file is present with a different repository.

reported by @JoostK and @SanderElias over slack.

… yarn

This commit fixes an issue where when `ng update` was ran using `yarn` (`yarn ng update`) the registry was always being overridden to `https://registry.yarnpkg.com`.

This is because yarn will set the `npm_config_registry` env variable to `https://registry.yarnpkg.com` even when an RC file is present with a different repository.
@alan-agius4 alan-agius4 added the target: patch This PR is targeted for the next patch release label Nov 9, 2022
@alan-agius4 alan-agius4 requested a review from clydin November 9, 2022 14:05
@alan-agius4 alan-agius4 added the action: review The PR is still awaiting reviews from at least one requested reviewer label Nov 9, 2022
@SanderElias
Copy link
Copy Markdown

@alan-agius4 I'm glad you found it!

@angular-robot angular-robot bot added the area: docs Related to the documentation label Nov 10, 2022
@alan-agius4 alan-agius4 removed the area: docs Related to the documentation label Nov 10, 2022
@alan-agius4 alan-agius4 added action: merge The PR is ready for merge by the caretaker and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Nov 11, 2022
@alan-agius4 alan-agius4 merged commit 0dcb199 into angular:main Nov 11, 2022
@alan-agius4 alan-agius4 deleted the yarn-registry-update branch November 11, 2022 15:40
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Dec 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants